
# ----------------------------------------------
# Author      : Maximo <jonny0624@gmail.com>
# Created on  : 2023-07-25 18:07
# Description : 
# ----------------------------------------------
# 更新当前仓库
git pull

# 自动生成commit提示
commit_message="Update at $(date +'%Y-%m-%d %H:%M:%S')"
echo "Commit 信息: $commit_message"

# 添加所有更改到暂存区
git add .

# 创建一个commit提交
git commit -m "$commit_message"

# 推送到远程仓库
git push origin master

